<!-- Main Column -->
<div id="maincolumn">
<h3 class="main cpwd" id="main-title">Update Product</h3>
<!--<h1>Update Product</h1>-->
<!-- Visual help : help tips and "Connected" label -->

<?php //form_open('newProduct', array('id' => 'newProduct'))?>
<?=form_open(admin_url().'pr_tab_management_cl/page_update_product/'.$product_data[0]['pd_id'], array('name' => 'newProduct','id' => 'newProduct'))?>
	<input type="hidden" name="id" value="<?=$product_data[0]['pd_id']?>" />
    <dl class="small">
        <dt>
            <label>Product Name</label>                                    
        </dt>
        <dd>
          
           <?=form_input(array('name' 		=> 'pd_name',
                              'id' 			=> 'pd_name',
                              'class' 		=> 'inputtext w180',
                              'value'		=> $product_data[0]['pd_name']
                              ))?>
            
            
        </dd>
    </dl>
    <dl class="small">
        <dt>
            <label>Product Price</label>                                    
        </dt>
        <dd>
          
           <?=form_input(array('name' 		=> 'pd_price',
                              'id' 			=> 'pd_price',
                              'class' 		=> 'inputtext w180',
                              'value'		=> $product_data[0]['pd_price']
                              ))?>
            
            
        </dd>
    </dl>
    <dl class="small">
        <dt>
            <label>Product Des</label>                                    
        </dt>
        <dd>
          
           <?=form_input(array('name' 		=> 'pd_des',
                              'id' 			=> 'pd_des',
                              'class' 		=> 'inputtext w180',
                              'value'		=> $product_data[0]['pd_des']
                              ))?>
            
            
        </dd>
     </dl>
     <dl class="small">
        <dt>
            <label>Product Image</label>                                    
        </dt>
        <dd>
          
           <?=form_input(array('name' 		=> 'pd_image',
                              'id' 			=> 'pd_image',
                              'class' 		=> 'inputtext w180',
                              'value'		=> $product_data[0]['pd_image']
                              ))?>
            
            
        </dd>
     </dl>
  <!--button save and cancel -->
  <div class="buttons" style="width:350px">	
	  <input id="bSave" type="button" class="button yes right mr40" value="<?= lang('pr_button_save') ?>" style="height:30px;width:50px;"/>
	  <input id="bCancel" type="button" class="button no right" value=" <?= lang('pr_button_cancel') ?>" style="height:30px;width:50px;"/>        	
  </div>
<?=form_close()?>
 
</div> <!-- /maincolumn -->

<script type="application/javascript">
	// submit for update product
	//ION.setFormSubmit('newProduct', 'product_update', 'pr_product/page_update_product');
	/*$('product_update').addEvent('click', function(e){
		//e.stop();
		alert(1);
		MUI.Content.update({
			'loadMethod': 'xhr',
			'url': admin_url + 'pr_product/page_update_product',
			'title': Lang.get('Product Management')
		});
	});	*/
</script>
